package com.tudouji.project.flow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.flow.mapper.OperationlogsMapper;
import com.tudouji.project.flow.domain.Operationlogs;
import com.tudouji.project.flow.service.IOperationlogsService;

/**
 * 操作日志Service业务层处理
 * 
 * @author tudouji
 * @date 2021-04-29
 */
@Service
public class OperationlogsServiceImpl implements IOperationlogsService 
{
    @Autowired
    private OperationlogsMapper operationlogsMapper;

    /**
     * 查询操作日志
     * 
     * @param autoid 操作日志ID
     * @return 操作日志
     */
    @Override
    public Operationlogs selectOperationlogsById(Long autoid)
    {
        return operationlogsMapper.selectOperationlogsById(autoid);
    }

    /**
     * 查询操作日志列表
     * 
     * @param operationlogs 操作日志
     * @return 操作日志
     */
    @Override
    public List<Operationlogs> selectOperationlogsList(Operationlogs operationlogs)
    {
        return operationlogsMapper.selectOperationlogsList(operationlogs);
    }

    /**
     * 新增操作日志
     * 
     * @param operationlogs 操作日志
     * @return 结果
     */
    @Override
    public int insertOperationlogs(Operationlogs operationlogs)
    {
        return operationlogsMapper.insertOperationlogs(operationlogs);
    }

    /**
     * 修改操作日志
     * 
     * @param operationlogs 操作日志
     * @return 结果
     */
    @Override
    public int updateOperationlogs(Operationlogs operationlogs)
    {
        return operationlogsMapper.updateOperationlogs(operationlogs);
    }

    /**
     * 批量删除操作日志
     * 
     * @param autoids 需要删除的操作日志ID
     * @return 结果
     */
    @Override
    public int deleteOperationlogsByIds(Long[] autoids)
    {
        return operationlogsMapper.deleteOperationlogsByIds(autoids);
    }

    /**
     * 删除操作日志信息
     * 
     * @param autoid 操作日志ID
     * @return 结果
     */
    @Override
    public int deleteOperationlogsById(Long autoid)
    {
        return operationlogsMapper.deleteOperationlogsById(autoid);
    }
    @Override
    public Operationlogs findDetail(Operationlogs opl)
    {
        return operationlogsMapper.findDetail(opl);
    }
}
